a = 10
b = 20
print(dir(a))
print(a+b)
print(a.__add__(b))  # +
print(a.__sub__(b))  # -
print(a.__lt__(b))  # <
print(a.__le__(b))  # <=
print(a.__eq__(b))  # ==
print()
print(a.__gt__(b))  # >
print(a.__ge__(b))  # >=
print(a.__ne__(b))  # !=
print()
print(a.__mul__(b))  # 乘法
print(a.__divmod__(b))  # 除法
print(a.__mod__(b))  # 取余
print(a.__floordiv__(b))  # 整除
print(a.__pow__(b))  # 幂运算